﻿using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace CacheDemo1.Controllers
{
    
    public class FirstController : Controller
    {
        [ResponseCache(Duration = 60)]
        public IActionResult Index()
        {
            //直接一
           // Response.Headers[Microsoft.Net.Http.Headers.HeaderNames.CacheControl] = "public, max-age=60";
            return View();
        }
    }
}
